import motor.motor_asyncio
from app.config import (
    MONGODB_HOST, MONGODB_PORT, MONGODB_DATABASE, MONGODB_USER, MONGODB_PASSWORD
)

client = motor.motor_asyncio.AsyncIOMotorClient(
    f'mongodb://{MONGODB_USER}:{MONGODB_PASSWORD}@{MONGODB_HOST}:{MONGODB_PORT}/{MONGODB_DATABASE}?authSource=admin'
)

xibie_mongo = client[MONGODB_DATABASE]

